<template>
  <div class="admin-not-found">
    <div class="container">
      <h1>404</h1>
      <div class="error-text">抱歉，页面不见了</div>
      <el-button type="primary" @click="goToDashboard">返回控制台</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()
const goToDashboard = () => {
  router.push('/admin/dashboard')
}
</script>

<style scoped>
.admin-not-found {
  min-height: calc(100vh - 80px); /* 减去顶部导航栏的高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  padding: 20px;
}

.container {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 120px;
  color: #1e293b;
  margin: 0;
  line-height: 1;
}

.error-text {
  font-size: 24px;
  color: #64748b;
  margin: 20px 0 30px;
}
</style> 